const routes = [
  {
    //路由初始指向
    path: "/", 
    redirect: "/index" 
  },
  {
    // pc端首页
    path: "/index", 
    name: "index",
    component: () => import("@/views/web/index.vue") 
  },
  {
    path: "/:path(.*)+",
    name: "404",
    component: () => import('@/views/404.vue')
  },
];
 
export default routes;